<?php if(isset($extra_read_list) && is_array($extra_read_list)):?>

<div id="contacte-ad" class="clearfix"><!-- start #contacte-ad //-->

<div id="contacte-ad1"><!-- start #contacte-ad1 //-->
<?php foreach($extra_read_list as $extr_read):?>
<?php 
	//check thumnail images
	$thumnail_path = "upfiles/".$extr_read['images1']."-431x253.jpg";
	if(!file_exists($thumnail_path))
	{
		include_once('inc/class.thumnail.php');
		//Make feature.php 431X
		$srcImage = "upfiles/".$extr_read['images1'];
		$desc = $thumnail_path;
		$helper = new ImageThumnailHelper_Crop();
		$helper->auto_crop($srcImage,$desc ,431,253);
	}
?>
 <div class="contacte-ad1-tab">
 	<a href="<?php echo get_article_page_url_by_type($extr_read['lb']);?>?id=<?php echo $extr_read['id'];?>">
  <img src="<?php echo $thumnail_path;?>" />
 <h3> <?php echo html_safe($extr_read['title']);?></h3>
 </a>
<p> <?php echo html_safe(date('Y-m-d',strtotime($extr_read['addtime'])));?></p>
  </div>

<?php endforeach;?>
</div><!-- end #contacte-ad1 //-->
<div id="contacte-ad2" style="clear:both;"><!-- start #contacte-ad2 //-->
	<script type="text/javascript"><!--
google_ad_client = "ca-pub-3893230593619003";
/* Bios Monthly 廣告 */
google_ad_slot = "9178475603";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div><!-- end #contacte-ad2 //-->
</div><!-- end #contacte-ad //-->
<?php endif;?>